{if $edit_filter}<div class="ml20">{$edit_filter}</div>{/if}
{if $filter_groups || ($filter_price && $filter_price.filters)}
<div id="filter_menu">
    <div class="filter_menu_header_left">
        <div class="filter_menu_header_right">
            <div class="filter_menu_header">
                <a href="{$url_filter}">Lọc sản phẩm</a>
            </div>
        </div>
    </div>
    <div style="border-top:4px solid #CD0000">
        <div class="filter_menu_content">
            {if $filter_price}
            	<div class="group_filter">{$filter_price.name}</div>
                <div class="filter_link">
                {foreach from=$filter_price.filters item=filter}
                	<div class="filter_item">
                    	&raquo;
                        <a href="{$filter.link}">{$filter.name}</a> <span class="count">({$filter.count})</span>
                            
                       {if $filter.remove}
                        <span class="remove"> [<a href='{$filter.link}' title='Xóa điều kiện lọc này'>xóa</a>]</span>
                       {/if}
                    </div>
                {/foreach} 
                </div>
             {/if}
             
             {if $filter_price && $filter_groups}<div class="filter_sep"></div>{/if}
             
             {if $filter_groups}  
                {foreach from=$filter_groups item=group name=filter_group}
                	{if !$smarty.foreach.filter_group.first}
                    <div class="filter_sep"></div>
                    {/if}
                    {if $group.filters}
                    <div class="group_filter">{$group.name}</div>
                    <div class="filter_link">
                         {foreach from=$group.filters item=filter}
                         <div class="filter_item">
                         	&raquo;
                            <a href="{$filter.link}">{$filter.name}</a> <span class="count">({$filter.count})</span>
                            
                           {if $filter.remove}
                            <span class="remove"> [<a href='{$filter.link}' title='Xóa điều kiện lọc này'>xóa</a>]</span>
                           {/if}
                        </div>    
                        {/foreach}
                    </div>        
                    {/if}
                {/foreach}
            {/if}     
        </div>
    </div>
    <div class="filter_menu_bottom"></div>
</div>
{/if}